import axios from 'axios';
import Cbct from './base.js';
import md5 from 'js-md5';
export default {
    time:function(){
        axios.defaults.headers = {
            'Content-Type':'application/x-www-form-urlencoded',
        };
        axios.post(Cbct.https()+'/admin/time', {  
        })
        .then((response)=>{
            if(response.data.c == Cbct.code.successRes){
                var timing = response.data.d.time - Date.parse(new Date());                
                Cbct.setCookie('timing',timing);
            } 
        })
        .catch((response)=>{
      
        });
    }
}